package com.cxs.controller;

import cxs.utils.utils.Result;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/*
 * @Author:cxs
 * @Date:2021/10/14  16:42
 * @Version 1.0
 * @Motto:放下杂念,只为迎接明天更好的自己
 * */
@RestController
@RequestMapping("/promiss")
@CrossOrigin(allowCredentials = "true")
public class PromissController {

    @GetMapping("/reject")
    public Result reject(){
        return Result.OK("权限不足",403,null);
    }

    @GetMapping("/toLogin")
    public Result toLogin(){
        return Result.OK("账号失效",401,null);
    }
}
